/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const trainScheduleRouter =
  {
    path: '/trainSchedule',
    component: Layout,
    redirect: '/trainSchedule',
    name: 'TrainSchedule',
    hidden: false,
    meta: { title: 'Training Schedule', icon: 'trainSchedule', roles: ['admin', 'head_coach'] },
    children: [
      {
        path: '/trainSchedule',
        component: () => import('@/views/trainSchedule/index'),
        name: 'trainSchedule',
        meta: { title: 'Training Schedule', icon: 'trainSchedule', breadcrumb: false, roles: ['admin', 'head_coach'] }
      },
      {
        path: '/trainSchedule/add',
           component: () => import('@/views/trainSchedule/add'),
           name: '_train_course',
           meta: { title: 'Add/Edit', noCache: true, roles: ['admin', 'doctor', 'head_coach'] },
           hidden: true
        },
      {
         path: '/trainSchedule/add',
         component: () => import('@/views/trainSchedule/participact'),
         name: '_trainDetails',
         meta: { title: 'Details', noCache: true, roles: ['admin', 'doctor', 'head_coach'] },
         hidden: true,
         children: [
           {
             path: '/trainSchedule/add/participact',
             component: () => import('@/views/trainSchedule/participact'),
             name: '_train_Participact',
             meta: { title: 'participact', noCache: true, roles: ['admin', 'doctor', 'head_coach'] },
             hidden: true
          }
         ]
      }

    ]
  }
export default trainScheduleRouter
